package com.fast.web.controller;

import java.util.List;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.fast.common.annotation.Log;
import com.fast.common.base.web.BaseController;
import com.fast.common.spring.SpringContextHolder;
import com.fast.sys.entity.User;
import com.fast.sys.service.UserServiceImpl;

@RestController
@RequestMapping("/sys/user")
public class UserController extends BaseController {

	@Log("查询用户")
	@RequestMapping(value="list")
	public void list() {
		UserServiceImpl bean = SpringContextHolder.getBean(UserServiceImpl.class) ;
		List<User> selectList = bean.selectList(null) ;
		System.out.println(selectList);
		/*for (User user : selectList) {
			System.out.println(user);
		}*/
	}
	
}
